Imports System.Xml.Serialization

Public Class DataServices
    Inherits XEntityModelElementBase

    ''' <summary>Initializes an instance of the <see cref="DataServices" /> class.
    ''' This is the default constructor for this class.</summary>
    Public Sub New()
        MyBase.New("DataServices", EdmxXmlNamespace)
    End Sub

    ''' <summary>Initializes an instance of the <see cref="DataServices" /> class.</summary>
    ''' <param name="other">An <see cref="System.Xml.Linq.XElement"/> object to copy from.</param>
    Public Sub New(ByVal other As XElement)
        MyBase.New(other)
    End Sub

    Private __schema As CSDL.SchemaCollection

    <AutoLoad()> _
    <XmlElement("Schema", [Namespace]:=EdmXmlNamespace)> _
    Public ReadOnly Property Schemas() As CSDL.SchemaCollection
        Get
            If (__schema Is Nothing) Then
                __schema = New EdmxEditor.CSDL.SchemaCollection(Me, EdmXmlNamespace, "Schema")
            End If
            Return __schema
        End Get
    End Property

End Class

